﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.MountAndBlade.View.Screens.SceneEditorLayer
// Assembly: TaleWorlds.MountAndBlade.View, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 61152EB8-513B-4D4A-8AC0-0D1465C6CF6C
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\Modules\Native\bin\Win64_Shipping_Client\TaleWorlds.MountAndBlade.View.dll

using TaleWorlds.DotNet;
using TaleWorlds.Engine;
using TaleWorlds.ScreenSystem;

#nullable disable
namespace TaleWorlds.MountAndBlade.View.Screens
{
  public class SceneEditorLayer : ScreenLayer
  {
    public SceneEditorLayer(string categoryId = "SceneEditorLayer")
      : base(-100, categoryId)
    {
      this.Name = nameof (SceneEditorLayer);
    }

    protected override void OnActivate() => base.OnActivate();

    protected override void Tick(float dt) => base.Tick(dt);

    protected override void OnDeactivate() => base.OnDeactivate();

    protected override void RefreshGlobalOrder(ref int currentOrder)
    {
      SceneView editorSceneView = MBEditor.GetEditorSceneView();
      if (!((NativeObject) editorSceneView != (NativeObject) null))
        return;
      editorSceneView.SetRenderOrder(currentOrder);
      ++currentOrder;
    }
  }
}
